package ru.ksu.ktk.diploma.sdi.model;

public class DataSource {
    private String name;
    private String uri;
    private String comment;

    public static class Builder {
        private final String name;
        private final String uri;
        private String comment;

        public Builder(String name, String uri) {
            this.name = name;
            this.uri = uri;
        }

        public Builder comment(String comment) {
            this.comment = comment;
            return this;
        }

        public DataSource build() {
            return new DataSource(this);
        }
    }

    private DataSource(Builder builder) {
        this.name = builder.name;
        this.uri = builder.uri;
        this.comment = builder.comment;
    }

    public String getName() {
        return name;
    }

    public String getComment() {
        return comment;
    }

    public String getUri() {
        return uri;
    }

}
